package DAO;

import javabean.Customer;
import javabean.CustomerPackage;
import javabean.Package;

import java.sql.SQLException;
import java.util.List;

public interface IPackageDAO {
    public boolean AddPackage(Package pkg) throws SQLException;

    public boolean DeletePackage(int PackageID) throws SQLException;

    public boolean UpdatePackage(Package pkg) throws SQLException;

    public Package SearchPackageByID(int PackageID) throws SQLException;

    public List<Package> GetAllPackages() throws SQLException;

    public CustomerPackage GetCustomerPackage(Customer customer) throws SQLException;

    public boolean SubscribePackage(Package pkg, Customer customer) throws SQLException;

    public boolean CancellCustomerPackage(CustomerPackage customerpackage) throws SQLException;
}
